﻿<Window x:Class="ResourceBlender_Express.WinOptions"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ResourceBlender_Express"
    xmlns:validators="clr-namespace:ResourceBlender_Express.Validators"
    xmlns:props="clr-namespace:ResourceBlender_Express.Properties"
    loc:WindowService.EscapeClosesWindow="True"
    Title="Options"
    MinHeight="300" MinWidth="350"
    Height="380" Width="350" WindowStartupLocation="CenterOwner" 
    Style="{StaticResource {x:Type Window}}" Icon="/ResourceBlender-Express;component/Resources/images/resourceblender.ico">
    <Window.Resources>
        <ResourceDictionary>
            <props:Settings x:Key="settings" />
        </ResourceDictionary>
    </Window.Resources>
    <DockPanel Margin="6" LastChildFill="true">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" DockPanel.Dock="Bottom">
            <Button x:Name="btnSave" MinWidth="70" IsDefault="True" Click="btnSave_Click">Save</Button>
            <Button x:Name="btnCancel" MinWidth="70" IsCancel="True" Margin="2,2,0,2">Cancel</Button>
        </StackPanel>
        <TabControl Margin="6" DataContext="{StaticResource settings}" DockPanel.Dock="Top">
                <TabItem Header="Database">
                    <loc:DatabaseSelector x:Name="databaseSelector" DataContext="{Binding}" />
                </TabItem>
        </TabControl>
    </DockPanel>
</Window>
